1 <md-dialog class="mailAccount-dialog" aria-label="New MailAccount">
 
   2   <form name="mailAccountFormApp" class="md-inline-form" novalidate>
 
   3     <md-toolbar class="md-accent md-hue-2">
 
   5         class="md-toolbar-tools"
 
   7         layout-align="space-between center"
 
   9         <span class="title">{{ vm.title | translate }}</span>
 
  10         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
 
  12             md-font-icon="icon-close"
 
  13             aria-label="Close dialog"
 
  19     <md-dialog-content ms-scroll>
 
  20       <div class="error-list">
 
  22           ng-repeat="error in vm.errors"
 
  25           layout-align="space-between center"
 
  28             <span class="message">{{error.message}}</span>
 
  29             <span class="type">({{error.type}})</span>
 
  31           <md-button class="md-icon-button">
 
  33               md-font-icon="icon-alert-box"
 
  34               aria-label="alert error"
 
  40       <md-input-container class="md-block">
 
  41         <label translate="MAIL.TIMES">times</label>
 
  44           ng-model="vm.autoreply.times"
 
  47           ng-disabled="!vm.crudPermissions.canEdit"
 
  49           <md-option ng-value="1">One Time</md-option>
 
  50           <md-option ng-value="0">Always</md-option>
 
  53           ng-messages="mailAccountFormApp['times'].$error"
 
  54           ng-show="mailAccountFormApp['times'].$touched"
 
  57           <div ng-message="required">
 
  58             <span translate="MAIL.ERRORS.TIMES_REQUIRED"
 
  59               >times field is required</span
 
  64       <div class="md-block">
 
  65         <label class="md-caption grey-fg" translate="MAIL.TEXT">Text</label>
 
  67           aria-label="Text text"
 
  68           ckeditor="{ skin: 'office2013', language: 'en', allowedContent: true, extraPlugins: 'font,colorbutton,autoembed,autocorrect,googlethisterm,pastebase64', toolbarGroups: [{ name: 'styles', groups: ['styles'] }, { name: 'clipboard', groups: ['undo'] }, { name: 'colors', groups: ['colors'] }, { name: 'basicstyles', groups: ['basicstyles'] }, { name: 'paragraph', groups: ['list', 'indent', 'align'] }, { name: 'mode' }], autocorrect_enabled: true, disableNativeSpellChecker: false, fontSize_sizes: '8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;16/16pt;18/18pt;20/20pt;22/22pt;24/24pt;26/26pt;28/28pt;36/36pt;48/48pt;72/72pt',  removePlugins: 'magicline' }"
 
  69           ng-model="vm.autoreply.text"
 
  73       <div class="error-list">
 
  75           ng-repeat="error in vm.errors"
 
  78           layout-align="space-between center"
 
  81             <span class="message">{{error.message}}</span>
 
  82             <span class="type">({{error.type}})</span>
 
  84           <md-button class="md-icon-button">
 
  86               md-font-icon="icon-alert-box"
 
  87               aria-label="alert error"
 
  95     <md-dialog-actions layout="row" layout-align="space-between center">
 
  98         layout-align="start center"
 
  99         ng-if="vm.crudPermissions.canEdit"
 
 103           ng-click="vm.saveMailAccountApp()"
 
 104           class="send-button md-accent md-raised"
 
 105           ng-disabled="mailAccountFormApp.$invalid || mailAccountFormApp.$pristine"
 
 107           translate="MAIL.SAVE"
 
 108           translate-attr-aria-label="MAIL.SAVE"